﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.DV设备管理
{
    /// <summary>
    /// 设备维修单模型类
    /// </summary>
    public class DV_Repair : Entity<int>
    {
        /// <summary>
        /// 维修单编码
        /// </summary>
        public string RepairCode { get; set; } = string.Empty;

        /// <summary>
        /// 维修单名称
        /// </summary>
        public string RepairName { get; set; } = string.Empty;

        /// <summary>
        /// 设备ID
        /// </summary>
        public int MachineryId { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string? MachineryCode { get; set; } = string.Empty;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string? MachineryName { get; set; } = string.Empty;

        /// <summary>
        /// 品牌
        /// </summary>
        public string? MachineryBrand { get; set; } = string.Empty;

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? MachinerySpec { get; set; } = string.Empty;

        /// <summary>
        /// 设备类型ID
        /// </summary>
        public int? MachineryTypeId { get; set; }

        /// <summary>
        /// 报修日期
        /// </summary>
        public DateTime? RequireDate { get; set; }

        /// <summary>
        /// 维修完成日期
        /// </summary>
        public DateTime? FinishDate { get; set; }

        /// <summary>
        /// 验收日期
        /// </summary>
        public DateTime? ConfirmDate { get; set; }

        /// <summary>
        /// 维修结果（SUCCESS：修复成功；SCRAP：报废）
        /// </summary>
        public string? RepairResult { get; set; } = string.Empty;

        /// <summary>
        /// 维修人
        /// </summary>
        public string? AcceptedBy { get; set; } = string.Empty;

        /// <summary>
        /// 验收人
        /// </summary>
        public string? ConfirmBy { get; set; } = string.Empty;

        /// <summary>
        /// 单据状态（PREPARE：草稿；APPROVING：已报修；FINISHED：已维修完成；CONFIRMED：已验收）
        /// </summary>
        public string? Status { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; } = string.Empty;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
